package com.ecs.core;

public class GameContext{

	public static final float PPM = 16f; // Pixels Per Meter
	
	
	
	public static final float SCREEN_HEIGHT = 32;
	public static final int CHUNK_SIZE = 32;
	
	
	public static float pixelsToMeters(float px) {
		return px / PPM;
	}
	public static float metersToPixels(float px){
		return px * PPM;
	}
	
	//常见绘制，碰撞，等0-10层
	public static int LAYERE_0 = 0;
	public static int LAYERE_1 = 1;
	public static int LAYERE_2 = 2;
	public static int LAYERE_3 = 3;
	public static int LAYERE_4 = 4;
	public static int LAYERE_5 = 5;
	public static int LAYERE_6 = 6;
	public static int LAYERE_7 = 7;
	public static int LAYERE_8 = 8;
	public static int LAYERE_9 = 9;
	public static int LAYERE_10 = 10;
	
	
	//着色器默认相关
	public static final String U_REGION = "u_region";//textureRegion u,v,u2,v2范围
}
